//
//  Me2DaySessionDelegate.h
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 18..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@class Me2DaySessionController;
@class Me2DayOAuthResult;


@protocol Me2DaySessionDelegate

@required
- (void)me2daySessionController:(Me2DaySessionController*)controller
				didStartWithTag:(NSUInteger)tag;

- (void)me2daySessionController:(Me2DaySessionController*)controller
				didLoginWithTag:(NSUInteger)tag
				 withAuthResult:(Me2DayOAuthResult*)authResult;

- (void)me2daySessionController:(Me2DaySessionController*)controller
			   didRejectWithTag:(NSUInteger)tag
				 withAuthResult:(Me2DayOAuthResult*)authResult
					withMessage:(NSString*)alertMessage;

//- (void)me2daySessionController:(Me2DaySessionController*)controller
//			 didNotLoginWithTag:(NSUInteger)tag;

- (void)me2daySessionController:(Me2DaySessionController*)controller
			   didCancelWithTag:(NSUInteger)tag;

- (void)me2daySessionController:(Me2DaySessionController*)controller
				 didFailWithTag:(NSUInteger)tag
					withMessage:(NSString*)alertMessage
					  withError:(NSError*)error;

- (void)me2daySessionController:(Me2DaySessionController*)controller
			   didFinishWithTag:(NSUInteger)tag;

@end
